<template>
	<view>
		<button @click="LogOut()" class="my-2">退出登录</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			LogOut(){
				uni.removeStorageSync('token')
				uni.removeStorageSync('enterprise')
				uni.removeStorageSync('username')
				uni.removeStorageSync('use')
				uni.switchTab({
					url:'/pages/index/index'
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
